package com.wangijun.yuan.web.model.vo;

import com.wangijun.yuan.core.domain.Comment;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author readpage
 * @since 2023-02-03 16:15
 */
@Getter
@Setter
@Schema(description = "评论VO")
public class ReplyCmtVO extends Comment {

    // 用户信息
    @Schema(description = "用户信息")
    private UserInfoVO userInfo;
    // 相对时间
    @Schema(description = "相对时间")
    private String relativeTime;
    @Schema(description = "是否点赞")
    private Boolean likedFlag;
    @Schema(description = "回复的评论")
    private PreCmt preCmt;
    /*回复数*/
    @Schema(description = "回复数量")
    private Integer replyCount = 0;
    @Schema(description = "回复打开状态")
    private Boolean replyStatus = false;
    @Schema(description = "回复内容主体")
    private String replyComment = "";

    @Schema(description = "回复的评论")
    public record PreCmt(
            @Schema(description = "评论内容")
            String content,
            @Schema(description = "用户名")
            String username
    ) {
    }
}
